set(ProjectName "MasterNetServerPlugin")

file(GLOB MasterNetServerPlugin_CC *.cc)

file(GLOB MasterNetServerPlugin_HH *.h)

add_library(MasterNetServerPlugin STATIC
	${MasterNetServerPlugin_CC}
	${MasterNetServerPlugin_HH})

target_link_libraries(MasterNetServerPlugin PRIVATE Core)
target_link_libraries(MasterNetServerPlugin PRIVATE Protocol)
target_link_libraries(MasterNetServerPlugin PRIVATE ${LIBEVENT_LIBRARIES})

add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)

set_target_properties(MasterNetServerPlugin PROPERTIES OUTPUT_NAME_DEBUG "MasterNetServerPlugin")
set_target_properties(MasterNetServerPlugin PROPERTIES PREFIX "")
set_target_properties(MasterNetServerPlugin PROPERTIES 
	ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})